package com.efun.center.http.config;

public enum DataType {

    /**
     * application/x-www-form-urlencoded
     */
    FORM,

    /**
     * application/json
     */
    JSON;

    /**
     * 获取实际的内容格式
     *
     * @return
     */
    public String toString() {
        switch (this) {
            case JSON:
                return "application/json";
            default:
                return "application/x-www-form-urlencoded";
        }
    }

}
